package HashTab;

import java.util.HashMap;

/**
 * @author yyq
 * @create 2021-10-25 14:55
 */
public class HashTabTest {
    public static void main(String[] args) {
        Hashtab hashtab = new Hashtab(10);
        hashtab.add(new Employee(0,"yyq",1131));
        hashtab.add(new Employee(1,"yyq",1131));
        hashtab.add(new Employee(10,"yyq",1131));
        hashtab.add(new Employee(20,"y1yq",1131));
        hashtab.list();


        Employee employee = hashtab.query(1);
        if (employee==null) System.out.println("没找到");
        else System.out.println(employee);

        hashtab.delete(1);

        System.out.println("********");
        hashtab.list();

    }
}
